from peewee import *
from .base import BaseModel

class Adv(BaseModel):
    id: int = AutoField(primary_key=True)
    title: str = CharField(default='')
    image: str = IntegerField(default='')
    url: str = IntegerField(default='')
    block_id: int = BooleanField(default=0)
    class Meta:
        table_name = 'adv'